using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;
using Youshow.Ace.Domain.Models;

namespace YayiMgr.Domain.SystemBase
{
    public class Function: BaseModel<Guid>
    {
        public new Guid Id { get; set; }
        [Comment("功能编码")]
        [MaxLength(50)]
        public string FuncCode { get; set; }
        [Comment("功能名称")]
        [MaxLength(50)]
        public string FuncName { get; set; }
        [Comment("功能路径")]
        [MaxLength(500)]
        public string FuncPath { get; set; }
        [Comment("上级功能ID")]
        public Guid PID { get; set; }
        public bool Enabled { get; set; }
    }
}